package xyz.o0o0o.demo.slf4jDemo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Hello world!
 *
 */
public class App {
	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger(App.class);
		org.apache.log4j.Logger log4jLogger =  org.apache.log4j.Logger.getLogger(App.class);
		java.util.logging.Logger utilLogger = java.util.logging.Logger.getLogger("utilLogger"); 
		org.apache.commons.logging.Log commonsLog = org.apache.commons.logging.LogFactory.getLog(App.class);  
		logger.debug("Hello slf4j debug");
		logger.trace("Hello slf4j trace");
		logger.info("Hello slf4j info");
		logger.warn("Hello slf4j warn");
		logger.error("Hello slf4j error");
//		NullPointerException nullPointerException = new NullPointerException();
//		nullPointerException.printStackTrace();
//		System.out.println(nullPointerException);
		
		log4jLogger.debug("Hello log4j debug");
		log4jLogger.info("Hello log4j info");
		log4jLogger.warn("Hello log4j warn");
		log4jLogger.error("Hello log4j error");
		log4jLogger.fatal("Hello log4j fatal");
		
		utilLogger.fine("Hello util fine");
		utilLogger.config("Hello util config");
		utilLogger.info("Hello util info");
		utilLogger.warning("Hello util warning");
		utilLogger.severe("Hello util severe");
		
		commonsLog.error("Hello commons error");
		
		System.out.println("123");
		System.err.print("123123123");
		
	}
}
